package com.lsl.abstract_factory.example.ConcreteFactory;

import com.lsl.abstract_factory.example.AbstractFactory.SkinFactory;
import com.lsl.abstract_factory.example.AbstractProduct.Button;
import com.lsl.abstract_factory.example.AbstractProduct.ComboBox;
import com.lsl.abstract_factory.example.AbstractProduct.TextField;
import com.lsl.abstract_factory.example.ConcreteProduct.button.SpringButton;
import com.lsl.abstract_factory.example.ConcreteProduct.combobox.SpringComboBox;
import com.lsl.abstract_factory.example.ConcreteProduct.textfield.SpringTextField;


/**
 * description:Spring皮肤工厂：具体工厂
 *
 * @author: liushengli
 * data: 2022/12/14
 */
public class SpringSkinFactory implements SkinFactory {
    @Override
    public Button createButton() {
        return new SpringButton();
    }

    @Override
    public TextField createTextField() {
        return new SpringTextField();
    }

    @Override
    public ComboBox createComboBox() {
        return new SpringComboBox();
    }
}
